package com.taotao.config;


/**
 * @author wangjin
 * @title: Test1
 * @projectName sw-gateway
 * @description:
 * @date 2021/12/19 19:32
 */
public class Test1 {
    public static void main(String[] args) {
        RateLimiter limiter = RateLimiter.create(2);
        System.out.println(limiter.tryAcquire());
        System.out.println(limiter.tryAcquire());
        System.out.println(limiter.tryAcquire());
    }
}
